package com.e.dianshang.service.impl;

import com.e.dianshang.mapper.UserOrderMapper;
import com.e.dianshang.pojo.Pay;
import com.e.dianshang.service.UserOrderService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class UserOrderServiceImpl implements UserOrderService {

    @Resource
    UserOrderMapper userOrderMapper;


    @Override
    public List<Map> selectFinishPay(String openid) {
        return userOrderMapper.selectFinishPay(openid);
    }

    @Override
    public Map selectFinishPay1(String unique) {
        return userOrderMapper.selectFinishPay1(unique);
    }

    @Override
    public List<Map> selectWaitPay(String openid) {
        return userOrderMapper.selectWaitPay(openid);
    }

    @Override
    public Map selectWaitPay1(String unique) {
        return userOrderMapper.selectWaitPay1(unique);
    }

    @Override
    public List<Map> selectArrive(String openid) {
        return userOrderMapper.selectArrive(openid);
    }

    @Override
    public Map selectArrive1(String unique) {
        return userOrderMapper.selectArrive1(unique);
    }

    @Override
    public List<Map> selectWaitPayMoney(String openid) {
        return userOrderMapper.selectWaitPayMoney(openid);
    }

    @Override
    public Map selectWaitPayMoney1(String unique) {
        return userOrderMapper.selectWaitPayMoney1(unique);
    }

    @Override
    public Integer updatePState(Map map) {
        return userOrderMapper.updatePState(map);
    }

    @Override
    public List<Map> selectWaitPurchased(String unique) {
        return userOrderMapper.selectWaitPurchased(unique);
    }

    @Override
    public Map selectGoods(Integer id) {
        return userOrderMapper.selectGoods(id);
    }
}